import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import VueAxios from 'vue-axios'

Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.use(VueAxios, axios);

//如果设置了跨域代理则使用'api/'，生产环境需要改为生产环境域名如'http://192.168.1.64:8006/api'
axios.defaults.baseURL = 'api/';

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app');
